/*  Fonts  */
@font-face {
	font-family: 'Roboto-Regular';
	src: url('../fonts/Roboto-Regular.eot');
	src: url('../fonts/Roboto-Regular.eot?#iefix')
		format('embedded-opentype'), url('../fonts/Roboto-Regular.woff')
		format('woff'), url('../fonts/Roboto-Regular.ttf') format('truetype'),
		url('../fonts/Roboto-Regular.svg#RobotoRegular') format('svg');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'Roboto-Bold';
	src: url('../fonts/Roboto-Bold.eot');
	src: url('../fonts/Roboto-Bold.eot?#iefix') format('embedded-opentype'),
		url('../fonts/Roboto-Bold.woff') format('woff'),
		url('../fonts/Roboto-Bold.ttf') format('truetype'),
		url('../fonts/Roboto-Bold.svg#RobotoBold') format('svg');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'Roboto-Medium';
	src: url('../fonts/Roboto-Medium.eot');
	src: url('../fonts/Roboto-Medium.eot?#iefix')
		format('embedded-opentype'), url('../fonts/Roboto-Medium.woff')
		format('woff'), url('../fonts/Roboto-Medium.ttf') format('truetype'),
		url('../fonts/Roboto-Medium.svg#RobotoMedium') format('svg');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'iconfont';
	src: url('../fonts/iconfont.eot');
	src: url('../fonts/iconfont.eot?#iefix') format('embedded-opentype'),
		url('../fonts/iconfont.woff') format('woff'),
		url('../fonts/iconfont.ttf') format('truetype'),
		url('../fonts/iconfont.svg#iconfont') format('svg');
}

.iconfont {
	font-family: "iconfont" !important;
	font-size: 16px;
	font-style: normal;
	-webkit-font-smoothing: antialiased;
	-webkit-text-stroke-width: 0.2px;
	-moz-osx-font-smoothing: grayscale;
}

/*  General CSS*/
nav ul li a:after, .main .item a:after, .social_widget .sm ul li a,
	.main .item a h2, .main .work .content {
	transition: all .2s linear;
	-webkit-transition: all .2s linear;
	-moz-transition: all .2s linear;
	-o-transition: all .2s linear;
}

/*  Header  */
@media ( min-width :900px) {
	header {
		display: block;
		float: left;
		width: 270px;
		height: 100%;
		position: fixed;
		top: 0;
		left: 0;
		background-color: #454444;
	}
	.logo {
		width: 150px;
		height: 200px;
		margin: 0 0 80px 40px;
	}
	.logo img {
		display: inline-block;
		margin-top: 80px;
		border-radius: 75px;
		border-bottom: 8px solid #383838;
	}
	nav {
		margin: 0 0 80px 40px;
	}
	nav ul {
		list-style: none;
		overflow: hidden;
	}
	nav ul li {
		display: block;
		margin-bottom: 25px;
	}
	nav ul li a {
		color: #fff;
		font-family: "Roboto-Regular", arial;
		font-size: 14px;
		letter-spacing: 1.5px;
		text-decoration: none;
		position: relative;
		padding-bottom: 5px;
	}
	nav ul li a:after, nav ul li.selected a:after {
		content: '';
		width: 0;
		height: 1px;
		background: #fff;
		position: absolute;
		left: 0;
		bottom: 0;
	}
	nav ul li a:hover:after, nav ul li.selected a:after {
		width: 100%;
	}
	.social_widget {
		position: absolute;
		width: 100%;
		bottom: 0;
		left: 0;
	}
	.social_widget .sm ul {
		list-style: none;
	}
	.social_widget .sm ul li {
		position: relative;
	}
	.social_widget .sm ul li span {
		display: none;
		position: absolute;
		left: 15px;
		top: -120px;
		width: 100px;
		height: 100px;
		background-image: url(../img/wechats.jpg);
		background-size: 100px 100px;
		border: 1px solid #4ed621;
	}
	.social_widget .sm ul li span:before {
		position: absolute;
		content: "";
		top: 100px;
		left: 25px;
		border-left: 10px solid transparent;
		border-right: 10px solid transparent;
		border-top: 10px solid #4ed621;
	}
	.social_widget .sm ul li a {
		display: block;
		position: relative;
		width: 66.7px;
		height: 60px;
		float: left;
		border-top: 1px solid #383838;
		border-right: 1px solid #383838;
		text-align: center;
		z-index: 1 !important;
	}
	.social_widget .sm ul li:last-child a {
		border-right: 0;
	}
	.social_widget .sm ul li a:hover {
		display: block;
	}
	.social_widget .sm ul li .fb:hover {
		background: #4b67a1;
	}
	.social_widget .sm ul li .t:hover {
		background: #55acee;
	}
	.social_widget .sm ul li .g:hover {
		background: #DD4B39;
	}
	.social_widget .sm ul li .mail:hover {
		background: #383838;
	}
	.social_widget .sm ul a i {
		height: 30px;
		text-align: center;
		display: inline-block;
		margin-top: 17px;
		background: url('../img/sm.png') no-repeat;
	}
	.social_widget .sm ul li a.fb i {
		width: 30px;
		background-position: 0 0;
	}
	.social_widget .sm ul li a.t i {
		width: 30px;
		background-position: -30px 0;
	}
	.social_widget .sm ul li a.g i {
		width: 30px;
		background-position: -60px 0;
	}
	.social_widget .sm ul li a.mail i {
		width: 30px;
		background-position: -90px 0;
	}
}

#menu_icon {
	display: none;
}

/*  main content home/portfolio  */
.main {
	width: 100%;
	height: auto;
	padding: 20px 40px 20px 310px;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	overflow: hidden;
}

.main .item {
	width: 25%;
	height: auto;
	float: left;
	position: relative;
	overflow: hidden; //
	margin: 10px;
	padding: 0;
}

.main .work .media {
	width: 100%;
	vertical-align: middle;
}

.main .work {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
}

.main .work .content {
	position: absolute;
	display: block;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: #f4f4f4;
	opacity: 0;
}

.main a.work:hover .content {
	opacity: 1;
}

.main .work .content h2 {
	position: absolute;
	top: 50%;
	margin-top: -30px;
	opacity: 0;
	width: 100%;
	text-align: center;
	z-index: 99;
	color: #535252;
	font-family: "Roboto-bold", arial;
	font-size: 18px;
	text-transform: uppercase;
}

.main a.work:hover .content h2 {
	margin-top: -19.5px;
	opacity: 1;
}

.main .item h2:after {
	content: '';
	display: block;
	width: 30%;
	height: 1px;
	background: #d5d5d5;
	text-align: center;
	margin: 20px auto 0 auto;
}

/*  inner page  */
.hero_img {
	width: 100%;
	max-height: 350px;
	overflow: hidden;
	margin-bottom: 100px;
}

.hero_img img {
	vertical-align: middle;
	width: 100%;
}

#slider {
	width: 100%;
	max-height: 350px;
	position: relative;
	list-style: none;
	overflow: hidden;
	margin-bottom: 100px;
}

#slider li {
	position: absolute;
	display: none;
	width: 100%;
	left: 0;
	top: 0;
}

#slider img {
	display: block;
	height: auto;
	float: left;
	width: 100%;
	border: 0;
	vertical-align: middle;
}

@media ( min-width :1400px) {
	.hero_img, #slider {
		max-height: 500px;
	}
}

hr {
	width: 30%;
	height: 1px;
	margin: 60px auto;
	display: block;
	border: 0;
	background: #e9e9e9;
}

.main_content {
	padding: 0 100px 60px 100px;
}

.main_content h1 {
	text-align: center;
	color: #3f3b3b;
	font-family: "Roboto-Regular", arial;
	font-size: 30px;
	letter-spacing: .5px;
}

.main_content p {
	text-align: left;
	margin-bottom: 40px;
	color: #676767;
	font-family: "Roboto-Regular", arial;
	font-size: 18px;
	line-height: 26px;
}

h1, h2, h3, h4, h5, h6 {
	text-align: center;
	color: #3f3b3b;
	font-family: "Roboto-Regular", arial;
	letter-spacing: .5px;
}

h1 {
	font-size: 2em;
	margin: .67em 0
}

h2 {
	font-size: 1.5em;
	margin: .75em 0
}

h3 {
	font-size: 1.17em;
	margin: .83em 0
}

h5 {
	font-size: .83em;
	margin: 1.5em 0
}

h6 {
	font-size: .75em;
	margin: 1.67em 0
}

h1, h2, h3, h4, h5, h6 {
	font-weight: bolder
}

/*  Responsive code  */
@media ( max-width :1000px) {
	.main .item {
		width: 33.33333333333333%;
	}
}

@media ( max-width :900px) {
	header {
		background: #454444;
	}
	header .logo {
		display: inline-block;
		margin-left: 40px;
		padding: 40px 0;
	}
	header nav ul {
		list-style: none;
		display: none;
	}
	header nav ul li a {
		display: block;
		width: 100%;
		padding: 30px 0;
		text-align: center;
		background: #3e3d3d;
		text-decoration: none;
		border-bottom: 1px solid #393838;
		color: #fff;
		font-family: "Roboto-Regular", arial;
		font-size: 14px;
		letter-spacing: 1.5px;
	}
	.show_menu {
		display: block;
	}
	#menu_icon, .close_menu {
		display: block;
		float: right;
		margin-right: 40px;
		width: 19px;
		height: 19px;
		margin-top: 50px;
		cursor: pointer;
		background: url('../img/menu_icon.png') no-repeat;
		background-position: 0 0;
	}
	#menu_icon {
		background-position: 0 0;
	}
	.close_menu {
		background-position: -22px 0 !important;
	}
	header .social_widget {
		display: none;
	}
	.main .item {
		width: 50%;
	}
	.main {
		padding-left: 0;
	}
	.main_content {
		padding: 0 40px 60px 40px;
	}
}

/**article**/
.post {
	border-bottom: 1px solid #ddd;
	border-top: 1px solid #fff;
	padding: 5px 0 30px 0;
	position: relative;
}

article .meta {
	position: absolute;
	right: 10px;
	top: 40px;
	color: #555;
	font-size: 1em;
	text-decoration: underline;
}

article .title {
	border-left: 5px solid #55acee;
	padding-left: 10px;
	text-align: left;
}

article .title a {
	color: #454444;
}

article .title a:hover {
	color: #55acee;
}

article .entry-comment {
	margin-top: 10px;
}

article .entry-comment a {
	display: inline-block;
	padding: 5px;
	border: 1px solid #ccc;
	border-radius: 5px;
	color: #55acee;
	background: #fff;
	transition: 0.8s all;
	-webkit-transition: 0.5s all;
	-moz-transition: 0.5s all;
	-o-transition: 0.5s all;
}

article .entry-comment a:hover {
	background: #55acee;
	color: #fff;
}

article .entry-comment .right {
	float: right;
	line-height: 3em;
	color: #00c2ff;
}

.article-btn .entry-comment {
    text-align: center;
}

.article-btn .entry-comment .next {
    margin-left: 30px;
}

/**articleShow**/
.article_title a {
	color: #55acee;
}

.publish-comment {
	height: 200px;
	margin-top: 60px;
	border-top: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
}

.comment-text {
	margin-top: 20px;
}

.js-textarea {
	display:inline-block;
	width: 100%;
	height: 80px;
	padding: 8px 10px;
	border: 1px solid #b7bbbf;
	background-color: #fff;
	box-sizing: border-box;
	border-radius: 2px;
	resize: none;
}

.comment-push {
	width: 100%;
	text-align: right;
}

.comment-btn {
	display: inline-block;
	width: 80px;
	height: 30px;
	padding: 0 10px;
	margin-top: 15px;
	border: none;
	border: 1px solid #55acee;
	cursor: pointer;
	border-radius: 5px;
	background: #33a646;
	color: #55acee;
	background: #fff;
	transition: 0.8s all;
	-webkit-transition: 0.5s all;
	-moz-transition: 0.5s all;
	-o-transition: 0.5s all;
}

.comment-btn:hover {
	background: #55acee;
	color: #fff;
}

.show-comment {
	padding: 20px 5px;
	border-bottom: 1px solid #ccc;
}

.show-comment .time {
	text-align: right;
	color: #55acee;
}

/* contact me */
.contact {
	list-style: none;
	text-align: center;
}

.contact li {
	float: left;
	height: 50px;
	width: 33.3%;
}

.contact li i {
	font-size: 3em;
	color: #454444;
	vertical-align: bottom;
	transition: 0.5s all;
	-webkit-transition: 0.5s all;
	-moz-transition: 0.5s all;
	-o-transition: 0.5s all;
}

.contact li i:hover {
	color: #55acee;
}

.contact li span {
	display: inline-block;
	margin-left: 10px;
}